package com.ktwlsoft.archivemanage.payload.businessDic;

import com.ktwlsoft.archivemanage.domain.dao.entity.BusinessDic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 业务字段新增
 *
 * @author zhuhe on 2019/10/25 15:50
 * @version 1.0
 */
@ApiModel("业务字段新增")
@Getter
@Setter
public class BusinessDicSaveRequest {

    /**字段类型(ARCHIVE_TYPE(档案类型)，UNIT_NATURE(单位性质), WORK_TYPE(在岗类型), EDUCATE_DEGREE(文化程度))**/
    @ApiModelProperty("字段类型(ARCHIVE_TYPE(档案类型)，UNIT_NATURE(单位性质), WORK_TYPE(在岗类型), EDUCATE_DEGREE(文化程度))")
    @NotNull(message = "字段类型不能为空")
    private BusinessDic.dicType dicType;

    /**字段值**/
    @ApiModelProperty("字段值")
    @Size(max = 60, message = "字段值参数超长")
    @NotNull(message = "字段值不能为空")
    private String dicValue;

    /**1启用，0禁用**/
    @ApiModelProperty("1启用，0禁用")
    @NotNull(message = "启用禁用不能为空")
    private Boolean enable;

    /**可否删除(1可删除，0不可删除)**/
    @ApiModelProperty("可否删除(1可删除，0不可删除)")
    @NotNull(message = "可否删除不能为空")
    private Boolean deletable;
}